grant-tables: do not fail attempts to GNTTABOP_set_version to the current version.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 3 Dec 2009 13:52:02 +0000 (13:52 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 3 Dec 2009 13:52:02 +0000 (13:52 +0000)
commitc1488502c949923a41707f8ea302dcfe0b9eab36
tree75349bb2e370915a7a0274dde19978a704cf4c2b
parentf5772cd764dcb74d8cdd9186d231f82b492fdbc9
grant-tables: do not fail attempts to GNTTABOP_set_version to the current version.
...even if there are active grants.

This triggers when checkpoint a guest which essentially resumes
without actually having gone through the suspend so the domain is
already latched to v2 inside Xen.

Also return the current actual version on success and failure. Not
terribly useful with only 2 options but is more robust to future
developments.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/grant_table.c
xen/include/public/grant_table.h